package com.e3.sysmg.config.client;

import java.util.List;

import com.e3.sysmg.config.model.ParameterModel;
import com.e3.template.tgf.TGFSimpleFormPanel;
import com.extjs.gxt.ui.client.widget.form.Field;

public class ParameterFormPanel extends TGFSimpleFormPanel<ParameterModel> {

	@Override
	public ParameterModel createModelInstance() {
		return ParameterHelper.INSTANCE.createModelInstance();
	}

	@Override
	public List<Field<?>> getFormFields() {
		String[] fNames = {
				ParameterModel.ID,ParameterModel.NAME
				,ParameterModel.TYPE,ParameterModel.LEVEL
				,ParameterModel.DATATYPE,ParameterModel.VALUE
				,ParameterModel.REMARK};
		return ParameterHelper.INSTANCE.getFormFields(fNames);
	}

}
